package singlelist;

public class Test {
    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
//        mySingleList.creatList();
//        mySingleList.addFirst(100);
//        mySingleList.addFirst(200);
//        mySingleList.addLast(100);
        mySingleList.addLast(12);
        mySingleList.addLast(23);
        mySingleList.addLast(34);
        mySingleList.addLast(45);
        mySingleList.addLast(56);
        try{
            mySingleList.addIndex(6,100);
        }catch (ListIndexOutOfBoundsException e) {
            e.printStackTrace();
        }
        mySingleList.display();
    }
}
